home *** CD-ROM | disk | FTP | other *** search
- ***********************************************************
- Server.ini file format description
- ***********************************************************
-
- Server.ini file is designed for simplifying routine
- operations that need to be performed at server
- startup. [coop_autoexec], [ctf_autoexec], [crystal_autoexec],
- [blackbox_autoexec] sections define the command set for
- corresponding game modes for automatical execution. The autoexec
- section for blackbox game may look like:
-
- Sample1:
- [blackbox_autoexec]
- cmd1=autobalance 0
- cmd2=autokick 0
- cmd3=levelrotationtime 0
- cmd4=timelimit 0
- cmd5=scorelimit 2000
-
- As you see each command is to be numbered. The game code
- executes commands subsequently from 1 to infinite.
- If there is a gap in numeration then some commands may
- not be executed! For instance, in the following
- sample only cmd1 and cmd2 will be executed and
- other will be droped.
-
- Sample2:
- [blackbox_autoexec]
- cmd1=autobalance 0
- cmd2=autokick 0
- cmd5=levelrotationtime 0
- cmd6=timelimit 0
- cmd8=scorelimit 2000
-
- Other interesting group of sections is: [coop_levels],[ctf_levels],
- [crystal_levels],[blackbox_levels]. These allow fixing a set
- of levels supported by the server and specifying their parameters.
- Flags "dr","dg","dm","df" disable use of rockets, grenades,
- mines and flares by the player. Flag "ex" enables use of external
- camera in CTF/BlackBox/Crystal. External camera is disabled in these
- games by default. The sample below allows server
- to run either lev\level1_bb.lev or lev\level6_bb.lev in
- blackbox mode. Moreover, players on lev\level6_bb.lev are
- not allowed to use grenades and rockets:
-
- Sample3:
- [blackbox_levels]
- level1=lev\level1_bb.lev
- level2=lev\level6_bb.lev dg dr
-
- And the final sample shows the whole server.ini file.
-
- Sample4 (server.ini):
- [coop_autoexec]
-
- [ctf_autoexec]
- cmd1=autobalance 0
- cmd2=autokick 0
- cmd3=levelrotationtime 30
- cmd4=timelimit 30
- cmd5=scorelimit 100
-
- [crystal_autoexec]
- cmd1=autobalance 0
- cmd2=autokick 0
- cmd3=levelrotationtime 30
- cmd4=timelimit 30
- cmd5=scorelimit 2000
-
- [blackbox_autoexec]
- cmd1=autobalance 0
- cmd2=autokick 0
- cmd3=levelrotationtime 0
- cmd4=timelimit 0
- cmd5=scorelimit 2000
-
- [coop_levels]
-
- [ctf_levels]
- level1=lev\level6_ctf.lev
- level2=lev\level8_ctf.lev
-
- [crystal_levels]
-
- [blackbox_levels]
- level1=lev\level1_bb.lev
- level2=lev\level2_bb.lev
-
-
-
-